<?php
	header('Content-Type:text/html;charset=utf-8');
	session_start();	
	$userid = $_SESSION['userid'];		
	if($userid!=null&&$userid!=""){	
		require_once("db_manage.php");
		$cid = $_POST['cid'];
		$title = $_POST['title'];
		$content = $_POST['content'];
		$type = $_POST['type'];
		$area = $_POST['area'];		
		//update scence
		if(scene_update($cid, $title, $content, $type, $area, $userid)==1){				
			$_SESSION['cid'] = $cid;
			echo "<script>location.href='admin_tour_over.php';</script>";
		}else{
			echo "<font color=red>update wrong</font>";
		}		
	}
?>
